<html>
<head><meta charset="utf-8"><title>How to get rustc to generate LLVM IR differently? · t-compiler/wg-llvm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/index.html">t-compiler/wg-llvm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html">How to get rustc to generate LLVM IR differently?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="204378955"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204378955" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204378955">(Jul 20 2020 at 01:21)</a>:</h4>
<p>Hello, I've gotten a fork of rust working with the Apple LLVM and an <code>arm64e</code> target. The problem is, it doesn't generate instructions such as <code>BRAA</code> and <code>BLAA</code></p>



<a name="204379011"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379011" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379011">(Jul 20 2020 at 01:23)</a>:</h4>
<p>How would I get rustc to generate LLVM IR with these instructions?</p>



<a name="204379518"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379518" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379518">(Jul 20 2020 at 01:38)</a>:</h4>
<p>Do you have C code that generates the appropriate thing? You can then work backwards and generate the LLVM IR for the C code and compare it to what the Rust code generates. That would probably give someone a better start on pointing you to a place to look.</p>



<a name="204379520"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379520" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379520">(Jul 20 2020 at 01:38)</a>:</h4>
<p>I think I've figured it out - adding the <code>+v8.3a</code> feature, but I'm not sure yet.</p>



<a name="204379539"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379539" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379539">(Jul 20 2020 at 01:39)</a>:</h4>
<p>I don't know anything, but I wouldn't expect that the <em>LLVM IR</em> would mention a specific instruction. It's more about how the codegen translates IR to the machine code.</p>



<a name="204379583"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379583" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379583">(Jul 20 2020 at 01:40)</a>:</h4>
<p>-snip-</p>



<a name="204379585"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379585" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379585">(Jul 20 2020 at 01:40)</a>:</h4>
<p><code>"target-features"="+crc,+crypto,+fp-armv8,+lse,+neon,+ras,+rcpc,+rdm,+v8.3a,+zcm,+zcz"</code></p>



<a name="204379586"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379586" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379586">(Jul 20 2020 at 01:40)</a>:</h4>
<p>that's the interesting part</p>



<a name="204379650"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379650" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379650">(Jul 20 2020 at 01:42)</a>:</h4>
<p>I strongly doubt LLVM will use authenticated pointers for unmodified code, probably mostly because it would just break pretty much any typical program.</p>



<a name="204379654"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379654" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379654">(Jul 20 2020 at 01:42)</a>:</h4>
<p>Please review your code for how appropriate it is to be posted to a general chat server and avoid breaking Rust's code of conduct.</p>



<a name="204379656"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379656" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379656">(Jul 20 2020 at 01:42)</a>:</h4>
<p>Sorry, a friend gave it to me.</p>



<a name="204379671"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379671" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379671">(Jul 20 2020 at 01:43)</a>:</h4>
<p>didn't think anyone would care but whatever</p>



<a name="204379678"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379678" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379678">(Jul 20 2020 at 01:43)</a>:</h4>
<p><span class="user-mention silent" data-user-id="123586">nagisa</span> <a href="#narrow/stream/187780-t-compiler.2Fwg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F/near/204379650">said</a>:</p>
<blockquote>
<p>I strongly doubt LLVM will use authenticated pointers for unmodified code, probably mostly because it would just break pretty much any typical program.</p>
</blockquote>
<p>that ASM had two PAC instructions - <code>PACIBSP</code> and <code>RETAB</code></p>



<a name="204379715"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379715" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379715">(Jul 20 2020 at 01:44)</a>:</h4>
<p>ok got it.</p>



<a name="204379719"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379719" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379719">(Jul 20 2020 at 01:44)</a>:</h4>
<p>rn I'm compiling rust with <code>+v8.3a</code> added to the arm64e target's features</p>



<a name="204379721"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379721" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379721">(Jul 20 2020 at 01:44)</a>:</h4>
<p>to see if that's it.</p>



<a name="204379724"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379724" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379724">(Jul 20 2020 at 01:44)</a>:</h4>
<p>probably shouldn't have made this topic this early lol</p>



<a name="204379725"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379725" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379725">(Jul 20 2020 at 01:44)</a>:</h4>
<p>you could've compiled an equally trivial example with the rustc build you already had to verify</p>



<a name="204379744"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379744" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379744">(Jul 20 2020 at 01:45)</a>:</h4>
<p>Yup. You can add target features via command line</p>



<a name="204379748"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379748" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379748">(Jul 20 2020 at 01:45)</a>:</h4>
<p>now that you have a rustc build with apple's llvm you should probably be working with trivial examples rather than rebuilding the compiler.</p>



<a name="204379749"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379749" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379749">(Jul 20 2020 at 01:45)</a>:</h4>
<p>... woops, how?</p>



<a name="204379752"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379752" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379752">(Jul 20 2020 at 01:45)</a>:</h4>
<p>-C target-feature</p>



<a name="204379755"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379755" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379755">(Jul 20 2020 at 01:45)</a>:</h4>
<p>thanks</p>



<a name="204379797"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379797" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379797">(Jul 20 2020 at 01:46)</a>:</h4>
<p><span class="user-mention" data-user-id="116155">@Jake Goulding</span> actually… don't we have a list of allowed features? That we support.</p>



<a name="204379801"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379801" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379801">(Jul 20 2020 at 01:46)</a>:</h4>
<p>I think you would need to go through <code>-C/-Z llvm-args</code> instead to specify features not in this list.</p>



<a name="204379809"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379809" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379809">(Jul 20 2020 at 01:47)</a>:</h4>
<p>Oh, hmm.</p>



<a name="204379870"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379870" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379870">(Jul 20 2020 at 01:48)</a>:</h4>
<div class="codehilite"><pre><span></span><code>wuz % cargo rustc -- -C target-feature=&#39;xyzzy&#39;
   Compiling wuz v0.1.0 (/private/tmp/wuz)
&#39;xyzzy&#39; is not a recognized feature for this target (ignoring feature)
</code></pre></div>


<p>I <em>think</em> that's coming from LLVM, not <code>rustc</code></p>



<a name="204379895"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379895" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379895">(Jul 20 2020 at 01:49)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/blob/master/src/librustc_codegen_llvm/llvm_util.rs#L165">https://github.com/rust-lang/rust/blob/master/src/librustc_codegen_llvm/llvm_util.rs#L165</a></p>



<a name="204379899"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379899" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379899">(Jul 20 2020 at 01:49)</a>:</h4>
<p>but also that contains v8.3a</p>



<a name="204379952"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379952" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379952">(Jul 20 2020 at 01:50)</a>:</h4>
<p><code>RUSTC=$HOME/Builds/rust-arm64e/bin/rustc RUSTFLAGS="-Ctarget-feature=+v8.3a -Ctarget-feature=+ras -Ctarget-feature=+rcpc -Ctarget-feature=+rdm -Ctarget-feature=+lse -Ctarget-feature=+crc -Ctarget-feature=+crypto -Ctarget-feature=+fp-armv8 -Ctarget-feature=+zcm -Ctarget-feature=+zcz" cargo rustc --target=arm64e-apple-ios --release -- --emit=asm</code></p>



<a name="204379961"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204379961" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204379961">(Jul 20 2020 at 01:51)</a>:</h4>
<p>wait lemme try an executable lol</p>



<a name="204380044"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380044" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380044">(Jul 20 2020 at 01:53)</a>:</h4>
<p>I wonder if the allow list only corresponds to conditional configuration...</p>



<a name="204380056"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380056" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380056">(Jul 20 2020 at 01:53)</a>:</h4>
<p>could be.</p>



<a name="204380066"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380066" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380066">(Jul 20 2020 at 01:53)</a>:</h4>
<div class="codehilite"><pre><span></span><code><span class="cp">#[inline(never)]</span><span class="w"></span>
<span class="k">fn</span> <span class="nf">test</span><span class="p">()</span><span class="w"> </span><span class="p">{}</span><span class="w"></span>

<span class="cp">#[inline(never)]</span><span class="w"></span>
<span class="k">fn</span> <span class="nf">testB</span><span class="p">()</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="n">test</span><span class="p">();</span><span class="w"></span>
<span class="w">    </span><span class="n">println</span><span class="o">!</span><span class="p">(</span><span class="s">&quot;testB!&quot;</span><span class="p">);</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>

<span class="k">fn</span> <span class="nf">main</span><span class="p">()</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="n">println</span><span class="o">!</span><span class="p">(</span><span class="s">&quot;Hello, world!&quot;</span><span class="p">);</span><span class="w"></span>
<span class="w">    </span><span class="n">test</span><span class="p">();</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>
</code></pre></div>



<a name="204380067"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380067" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380067">(Jul 20 2020 at 01:53)</a>:</h4>
<div class="codehilite"><pre><span></span><code>src/llvm-project/llvm/lib/MC/MCSubtargetInfo.cpp
81:    errs() &lt;&lt; &quot;&#39;&quot; &lt;&lt; Feature &lt;&lt; &quot;&#39; is not a recognized feature for this target&quot;
266:    errs() &lt;&lt; &quot;&#39;&quot; &lt;&lt; Feature &lt;&lt; &quot;&#39; is not a recognized feature for this target&quot;
</code></pre></div>



<a name="204380072"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380072" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380072">(Jul 20 2020 at 01:53)</a>:</h4>
<p>no pacibsp or retab instructions in the --emit llvm-ir</p>



<a name="204380113"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380113" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380113">(Jul 20 2020 at 01:54)</a>:</h4>
<p>wait a second</p>



<a name="204380114"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380114" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380114">(Jul 20 2020 at 01:54)</a>:</h4>
<p>i found it</p>



<a name="204380115"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380115" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380115">(Jul 20 2020 at 01:54)</a>:</h4>
<p>it's an attribute in the llvm IR</p>



<a name="204380119"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380119" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380119">(Jul 20 2020 at 01:54)</a>:</h4>
<div class="codehilite"><pre><span></span><code>attributes #0 = { noinline nounwind optnone ssp uwtable &quot;correctly-rounded-divide-sqrt-fp-math&quot;=&quot;false&quot; &quot;disable-tail-calls&quot;=&quot;false&quot; &quot;less-precise-fpmad&quot;=&quot;false&quot; &quot;no-frame-pointer-elim&quot;=&quot;true&quot; &quot;no-frame-pointer-elim-non-leaf&quot; &quot;no-infs-fp-math&quot;=&quot;false&quot; &quot;no-jump-tables&quot;=&quot;false&quot; &quot;no-nans-fp-math&quot;=&quot;false&quot; &quot;no-signed-zeros-fp-math&quot;=&quot;false&quot; &quot;no-trapping-math&quot;=&quot;false&quot; &quot;ptrauth-calls&quot; &quot;ptrauth-returns&quot; &quot;stack-protector-buffer-size&quot;=&quot;8&quot; &quot;target-cpu&quot;=&quot;vortex&quot; &quot;target-features&quot;=&quot;+crc,+crypto,+fp-armv8,+lse,+neon,+ras,+rcpc,+rdm,+v8.3a,+zcm,+zcz&quot; &quot;unsafe-fp-math&quot;=&quot;false&quot; &quot;use-soft-float&quot;=&quot;false&quot; }
</code></pre></div>



<a name="204380121"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380121" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380121">(Jul 20 2020 at 01:54)</a>:</h4>
<p><code>"ptrauth-calls" "ptrauth-returns"</code></p>



<a name="204380137"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380137" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380137">(Jul 20 2020 at 01:55)</a>:</h4>
<p>As I mentioned earlier, I wouldn't expect there to be specific instructions in the IR (unless you had an <code>asm!</code> block)</p>



<a name="204380139"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380139" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380139">(Jul 20 2020 at 01:55)</a>:</h4>
<p>yeah</p>



<a name="204380142"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380142" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380142">(Jul 20 2020 at 01:56)</a>:</h4>
<p>now I need to figure out how to get the target to insert those attributes</p>



<a name="204380197"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380197" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380197">(Jul 20 2020 at 01:57)</a>:</h4>
<p>if you grep for <code>apply_llfn</code> you will find where in rust attributes to functions are applied</p>



<a name="204380206"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380206" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380206">(Jul 20 2020 at 01:57)</a>:</h4>
<p>(but also these attributes appear to be specific to apple's llvm (again))</p>



<a name="204380256"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380256" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380256">(Jul 20 2020 at 01:58)</a>:</h4>
<p><code>from_fn_attrs</code> is a relevant function here.</p>



<a name="204380262"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380262" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380262">(Jul 20 2020 at 01:59)</a>:</h4>
<p>I was looking at that, actually.</p>



<a name="204380266"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380266" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380266">(Jul 20 2020 at 01:59)</a>:</h4>
<p>I was just trying to find how to pass somethign down to codegen attrs from a target.</p>



<a name="204380497"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380497" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380497">(Jul 20 2020 at 02:05)</a>:</h4>
<p>I don’t think we have any target-specific attributes fwiw.</p>



<a name="204380504"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380504" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380504">(Jul 20 2020 at 02:05)</a>:</h4>
<p>yeah i made it a TargetOptions thing</p>



<a name="204380507"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380507" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380507">(Jul 20 2020 at 02:05)</a>:</h4>
<p>and what we do have is just feature stuff, controlled entirely from source code.</p>



<a name="204380574"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380574" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380574">(Jul 20 2020 at 02:07)</a>:</h4>
<div class="codehilite"><pre><span></span><code><span class="k">pub</span><span class="w"> </span><span class="k">fn</span> <span class="nf">set_pac</span><span class="p">(</span><span class="n">cx</span>: <span class="kp">&amp;</span><span class="nc">CodegenCx</span><span class="o">&lt;</span><span class="na">&#39;ll</span><span class="p">,</span><span class="w"> </span><span class="nb">&#39;_</span><span class="o">&gt;</span><span class="p">,</span><span class="w"> </span><span class="n">llfn</span>: <span class="kp">&amp;</span><span class="na">&#39;ll</span><span class="w"> </span><span class="n">Value</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="k">if</span><span class="w"> </span><span class="n">cx</span><span class="p">.</span><span class="n">sess</span><span class="p">().</span><span class="n">must_use_pac</span><span class="p">()</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">        </span><span class="n">llvm</span>::<span class="n">AddFunctionAttrStringValue</span><span class="p">(</span><span class="w"></span>
<span class="w">            </span><span class="n">llfn</span><span class="p">,</span><span class="w"></span>
<span class="w">            </span><span class="n">llvm</span>::<span class="n">AttributePlace</span>::<span class="n">Function</span><span class="p">,</span><span class="w"></span>
<span class="w">            </span><span class="n">const_cstr</span><span class="o">!</span><span class="p">(</span><span class="s">&quot;ptrauth-calls&quot;</span><span class="p">),</span><span class="w"></span>
<span class="w">            </span><span class="n">const_cstr</span><span class="o">!</span><span class="p">(</span><span class="s">&quot;&quot;</span><span class="p">),</span><span class="w"></span>
<span class="w">        </span><span class="p">);</span><span class="w"></span>
<span class="w">        </span><span class="n">llvm</span>::<span class="n">AddFunctionAttrStringValue</span><span class="p">(</span><span class="w"></span>
<span class="w">            </span><span class="n">llfn</span><span class="p">,</span><span class="w"></span>
<span class="w">            </span><span class="n">llvm</span>::<span class="n">AttributePlace</span>::<span class="n">Function</span><span class="p">,</span><span class="w"></span>
<span class="w">            </span><span class="n">const_cstr</span><span class="o">!</span><span class="p">(</span><span class="s">&quot;ptrauth-returns&quot;</span><span class="p">),</span><span class="w"></span>
<span class="w">            </span><span class="n">const_cstr</span><span class="o">!</span><span class="p">(</span><span class="s">&quot;&quot;</span><span class="p">),</span><span class="w"></span>
<span class="w">        </span><span class="p">);</span><span class="w"></span>
<span class="w">    </span><span class="p">}</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>
</code></pre></div>



<a name="204380577"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380577" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380577">(Jul 20 2020 at 02:07)</a>:</h4>
<p>Should work?</p>



<a name="204380648"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/How%20to%20get%20rustc%20to%20generate%20LLVM%20IR%20differently%3F/near/204380648" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/How.20to.20get.20rustc.20to.20generate.20LLVM.20IR.20differently.3F.html#204380648">(Jul 20 2020 at 02:08)</a>:</h4>
<p>and yes I added <code>must_use_pac</code> myself.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>